package com.bai;

/**
 * Created by Admin on 9/15 0015.
 */
public class Printer {
    private Paper paper;
    private Ink ink;

    public void print(){
        String size=paper.getPaperSize();
        String color=ink.getColor();
        System.out.println("在"+size+"上面打印"+color+"的字");
    }

    public Paper getPaper() {
        return paper;
    }

    public void setPaper(Paper paper) {
        this.paper = paper;
    }

    public Ink getInk() {
        return ink;
    }

    public void setInk(Ink ink) {
        this.ink = ink;
    }
}
